<?php
	$url="http://localhost/afeios/seoTools/test/test.php";
	// 1. 初始化
	$ch = curl_init();
	// 2. 设置选项，包括URL
	$options = array(
		CURLOPT_URL => $url,
		CURLOPT_HEADER => false,
		CURLOPT_RETURNTRANSFER=>1,
		CURLOPT_USERAGENT=>'Mozilla/4.0 (compatible; MSIE 6.0; Windows NT 5.1; SV1; .NET CLR 1.1.4322; .NET CLR 2.0.50727)',
		CURLOPT_POSTFIELDS=>"userName=afei&password=pass",
		CURLOPT_HEADER=>1
	);
	
	curl_setopt($ch,$options);
	
	// 3. 执行并获取HTML文档内容
	$output = curl_exec($ch);
	echo $output;
	// 4. 释放curl句柄
	curl_close($ch);